﻿using System;

namespace YArchitech.HVAC
{
	public class CommonOperater
	{
		public bool GetBoolValue(string str, bool defaultValue = false)
		{
			bool result;
			try
			{
				result = Convert.ToBoolean(str);
			}
			catch (Exception ex)
			{
				string message = ex.Message;
				result = defaultValue;
			}
			return result;
		}
	}
}
